/*
 * @Author: Haochen
 * @Date: 2021-12-13 15:39:36
 * @LastEditTime: 2021-12-13 16:19:39
 * @FilePath: \students-system\src\api\modules\users.js
 */
import axios from 'axios';

export default {
  login(data) {
    return axios({
      url: '/users/login',
      method: 'POST',
      data,
    });
  },

  getUserInfo() {
    return axios({
      url: '/users/getUserInfo',
      headers: {
        Authorization: localStorage.token,
      },
    });
  },
};
